package com.demoworld;

import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.core.type.AnnotationMetadata;

/**
 * Description
 * <p>
 * </p>
 * DATE 2018/5/20.
 *
 * @author liwei5.
 */
public class EnablePrintAllBeansInitializer implements ImportBeanDefinitionRegistrar {
    @Override
    public void registerBeanDefinitions(AnnotationMetadata annotationMetadata, BeanDefinitionRegistry beanDefinitionRegistry) {
        new DemoClassPathScanner(beanDefinitionRegistry).doScan("com.demoworld");
    }
}
